package sis.studentinfo;

import java.io.Serializable;

public class Student implements Serializable{

	private String name;
	private int credits;
	private String state;
	
	public Student() {}
	public Student(String name) {
		this.name = name;
		this.credits = 0;
		this.state = "";
	}

	public static final int CREDITS_REQUIRED_FOR_FULL_TIME = 12;
	private static final long serialVersionUID = 1L;
	public static final String IN_STATE = "CO";


	public String getName() {
		return this.name;
	}
	
	public boolean isFullTime() {
		return this.credits >= CREDITS_REQUIRED_FOR_FULL_TIME;
	}
	
	public int getCredits() {
		return this.credits;
	}
	
	public void addCreadits(int i) {
		this.credits += i;
	}
	public boolean inInState() {
		return this.state.equals(Student.IN_STATE);
	}
	public void setState(String state) {
		this.state = state;
	}

}
